package com.day06;

public class ArrayExer {
    public static void main(String[] args){
        int[] arr = new int[]{8,2,1,0,3};
        int[] index = new int[]{2,0,3,2,4,0,1,3,2,3,3};
        String tel = "";
        for(int i = 0;i <index.length;i++){
            tel += arr[index[i]];//i=0，index[0]=2,arr[2]=1以此类推
        }
        System.out.println("联系方式："+ tel);//18013820100
    }
}
